package com.liu.community.server;/*
 *@Author:Liu Xing-zhi
 *Description:
 *Date:Crated in 11:39 2021/10/8
 */

import com.liu.community.dto.PageDto;
import com.liu.community.dto.QuestionDto;
import com.liu.community.pojor.Question;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionService {
      void createQuestion(Question question);

    //public List<QuestionDto> queryAllQuestion();
     PageDto<QuestionDto> queryAllQuestions(String tag,String search,Integer currentPage,Integer pageSize);

    PageDto<QuestionDto> list(Integer userId, Integer currentPage, Integer pageSize);

    QuestionDto queryQuestionById(Integer id);

    void createOrUpdateQuestion(Question question);

    void increViewCount(Integer id);

    List<QuestionDto> queryRelated(QuestionDto questionDto);
}
